package com.container.app;

import com.cache.app.Cacheable;

import static com.container.app.utilities.ContainerUtils.getComponentMethodValue;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/22/12
 * Time: 5:30 PM
 *
 */
public class CacheableClass implements Cacheable<String> {

    Class namedClass;

    public CacheableClass(Class namedClass) {
        this.namedClass = namedClass;
    }

    public Class getNamedClass() {
        return namedClass;
    }

    public boolean isOutOfDate() {
        return false;
    }

    public String getKey() {
        return getComponentMethodValue(namedClass,"name");
    }
}
